<% if flash[:notice].present? %>
<div class="grid_8 push_1 notice">
  <div><%= flash[:notice] %></div>
</div>
<% end %>
<div class="grid_15 push_1" id="peer_price_form">
  <%= form_for peer_price,
        :remote => true do |f| %>
    <h6><b>添加一条『<%= peer_price.released_on %>』的<%= t peer_price.type_name %>报价</b></h6>
    <dl class="grid_14 ">
      <dt class="grid_2">
        名称
      </dt>
      <dd class="grid_11">
        <%= f.text_field :name %>
        <%= f.hidden_field :released_on %>
        <%= f.hidden_field :type_name %>
      </dd>
    </dl>
    <dl class="grid_14">
      <dt class="grid_2">
        型号
      </dt>
      <dd class="grid_11">
        <%= f.text_field :model_no %>
      </dd>
    </dl>
    <dl class="grid_14">
      <dt class="grid_2 w3">
        同行价
      </dt>
      <dd class="grid_11">
        <%= f.text_field :peer_price %>
      </dd>
    </dl>
    <dl class="grid_14">
      <dt class="grid_2 w3">
        批发价
      </dt>
      <dd class="grid_11">
        <%= f.text_field :trade_price %>
      </dd>
    </dl>
    <dl class="grid_14">
      <dt class="grid_2 w3">
        零售价
      </dt>
      <dd class="grid_11">
        <%= f.text_field :retail_price %>
      </dd>
    </dl>
    <dl class="grid_14">
      <dt class="grid_2 w4">
        库存情况
      </dt>
      <dd class="grid_11">
        <%= f.radio_button :stock_situation, :full %><%= f.label 'stock_situation_full','充足' %>
        <%= f.radio_button :stock_situation, :shortage %><%= f.label 'stock_situation_shortage','紧缺' %>
      </dd>
    </dl>
    <hr>
    <dl class="grid_14">
      <dd class="grid_11">
        <%= f.submit '保存', :disabled_with => '提交中...' %>
        <%= link_to "返回",to_new_peer_prices_url(:type_name => peer_price.type_name),:remote => true, :method => :get, :class => :button %>
      </dd>
    </dl>
    <% end %>
</div>
<div class='clear'></div>